Skip to content

SF-3705 Show offline message in the import from Paratext section#3702

Merged
Nateowami merged 2 commits intomasterfrom
task/sf-3705-offline-message
Feb 20, 2026
Merged

SF-3705 Show offline message in the import from Paratext section#3702
Nateowami merged 2 commits intomasterfrom
task/sf-3705-offline-message

Conversation

@RaymondLuong3
Copy link
Collaborator

@RaymondLuong3 RaymondLuong3 commented Feb 19, 2026

A similar message already exists for the transcelerator option when the user was offline. I adapted the message to show in the Paratext section also.
image


This change is Reviewable


Open with Devin

@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.73%. Comparing base (df721c0) to head (4119081).
⚠️ Report is 2 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3702   +/-   ##
=======================================
  Coverage   81.73%   81.73%           
=======================================
  Files         619      619           
  Lines       38651    38651           
  Branches     6317     6317           
=======================================
  Hits        31593    31593           
  Misses       6084     6084           
  Partials      974      974           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Copy link
Collaborator

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nateowami reviewed 3 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on RaymondLuong3).


src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.spec.ts line 509 at r1 (raw file):

      const env = new TestEnvironment({ offline: true });
      tick();
      env.fixture.detectChanges();

This tick and detect changes are unneeded (already provided by the test environment).


src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.spec.ts line 513 at r1 (raw file):

      expect(env.importFromParatextButton.disabled).toBe(true);
      expect(env.errorMessages[1]).toEqual('Importing from Paratext is not available offline.');
      env.testOnlineStatusService.setIsOnline(true);

Shouldn't this be env.setOnline(true) so the entire test environment has a consistent state? Also, it makes the tick() and env.fixture.detectChanges() that follow redundant.

@Nateowami Nateowami self-assigned this Feb 20, 2026
@RaymondLuong3 RaymondLuong3 force-pushed the task/sf-3705-offline-message branch from 728e601 to 0bdd02f Compare February 20, 2026 19:27
Copy link
Collaborator Author

@RaymondLuong3 RaymondLuong3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaymondLuong3 made 2 comments.
Reviewable status: 2 of 3 files reviewed, 2 unresolved discussions (waiting on Nateowami).


src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.spec.ts line 509 at r1 (raw file):

Previously, Nateowami wrote…

This tick and detect changes are unneeded (already provided by the test environment).

Done.


src/SIL.XForge.Scripture/ClientApp/src/app/checking/import-questions-dialog/import-questions-dialog.component.spec.ts line 513 at r1 (raw file):

Previously, Nateowami wrote…

Shouldn't this be env.setOnline(true) so the entire test environment has a consistent state? Also, it makes the tick() and env.fixture.detectChanges() that follow redundant.

Done.

Copy link
Collaborator

@Nateowami Nateowami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nateowami reviewed 1 file and all commit messages, and resolved 2 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on RaymondLuong3).

@Nateowami Nateowami force-pushed the task/sf-3705-offline-message branch from 0bdd02f to 4119081 Compare February 20, 2026 22:07
@Nateowami Nateowami enabled auto-merge (squash) February 20, 2026 22:08
@Nateowami Nateowami merged commit 1137f35 into master Feb 20, 2026
21 checks passed
@Nateowami Nateowami deleted the task/sf-3705-offline-message branch February 20, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants